<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title>巡查任务新增查询删除报告</title>
    <meta name="generator" content="HTMLTestRunner 0.8.2"/>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
    <script src="../jquery.min.js"></script>
    <script src="../highcharts.js"></script>
    
<style type="text/css" media="screen">
body        { font-family: verdana, arial, helvetica, sans-serif; font-size: 80%; }
table       { font-size: 100%; }
pre         { }

/* -- heading ---------------------------------------------------------------------- */
h1 {
    font-size: 16pt;
    color: gray;
}
.heading {
    margin:0 auto;
   /* margin-top: 0ex;
    margin-bottom: 1ex;*/
}

.heading .attribute {
    margin-top: 1ex;
    margin-bottom: 0;
}

.heading .description {
    margin-top: 2ex;
    margin-bottom: 2ex;
}

/* -- css div popup ------------------------------------------------------------------------ */
a.popup_link {
}

a.popup_link:hover {
    color: red;
}

.popup_window {
    display: none;
    position: relative;
    left: 0px;
    top: 0px;
    /*border: solid #627173 1px; */
    padding: 10px;
    background-color: #E6E6D6;
    font-family: "Lucida Console", "Courier New", Courier, monospace;
    text-align: left;
    font-size: 8pt;
    width: 500px;
}

}
/* -- report ------------------------------------------------------------------------ */
#show_detail_line {
    margin-top: 3ex;
    margin-bottom: 1ex;
}
#result_table {
    width: 99%;
    margin:0 auto;
    border-collapse: collapse;
    border: 1px solid #ddd;
}
#header_row {
    font-weight: bold;
    color: #333;
    /*background-color: #ddd;*/
}
#result_table td {
    border: 1px solid #ddd;
    padding: 8px;
}
#result_table > tbody > tr:nth-of-type(2n+1)    {background-color:#f9f9f9;}

#total_row  { font-weight: bold; }
.passClass  { background-color: #6c6; }
.failClass  { background-color: #c60; }
.errorClass { background-color: #dcebfa; }
.passCase   { color: #6c6; }
.failCase   { color: #c60; font-weight: bold; }
.errorCase  { color: #c00; font-weight: bold; }
.hiddenRow  { display: none; }
.testcase   { margin-left: 2em; }
.ak-tab-title    {width:99%;height:35px;margin:0 auto;padding:0;list-style:none;background-color:#63a8eb;}
.ak-tab-title li {float:left;width:150px;height:35px;line-height:35px;border-right:1px solid #fff;}
.ak-tab-title li a     {display:block;text-decoration:none;text-align:center;color:#fff;}
.ak-tab-title li a:hover {background-color:#97cafc;}
.ak-left    {float:left;}
.ak-right   {float:right}
.ak-clear   {clear:both;}
.ak-bchart  {min-width:450px;height:250px;margin-bottom:10px;}
/* -- ending ---------------------------------------------------------------------- */
#ending {
}

</style>


</head>
<body>
<script language="javascript" type="text/javascript"><!--
output_list = Array();

/* level - 0:Summary; 1:Failed; 2:All */
function showCase(level) {
    trs = document.getElementsByTagName("tr");
    for (var i = 0; i < trs.length; i++) {
        tr = trs[i];
        id = tr.id;
        if (id.substr(0,2) == 'ft') {
            if (level < 1) {
                tr.className = 'hiddenRow';
            }
            else {
                tr.className = '';
            }
        }
        if (id.substr(0,2) == 'pt') {
            if (level > 1) {
                tr.className = '';
            }
            else {
                tr.className = 'hiddenRow';
            }
        }
    }
}


function showClassDetail(cid, count) {
    var id_list = Array(count);
    var toHide = 1;
    for (var i = 0; i < count; i++) {
        tid0 = 't' + cid.substr(1) + '.' + (i+1);
        tid = 'f' + tid0;
        tr = document.getElementById(tid);
        if (!tr) {
            tid = 'p' + tid0;
            tr = document.getElementById(tid);
        }
        id_list[i] = tid;
        if (tr.className) {
            toHide = 0;
        }
    }
    for (var i = 0; i < count; i++) {
        tid = id_list[i];
        if (toHide) {
            document.getElementById('div_'+tid).style.display = 'none'
            document.getElementById(tid).className = 'hiddenRow';
        }
        else {
            document.getElementById(tid).className = '';
        }
    }
}


function showTestDetail(div_id){
    var details_div = document.getElementById(div_id)
    var displayState = details_div.style.display
    // alert(displayState)
    if (displayState != 'block' ) {
        displayState = 'block'
        details_div.style.display = 'block'
    }
    else {
        details_div.style.display = 'none'
    }
}


function html_escape(s) {
    s = s.replace(/&/g,'&amp;');
    s = s.replace(/</g,'&lt;');
    s = s.replace(/>/g,'&gt;');
    return s;
}

/* obsoleted by detail in <div>
function showOutput(id, name) {
    var w = window.open("", //url
                    name,
                    "resizable,scrollbars,status,width=800,height=450");
    d = w.document;
    d.write("<pre>");
    d.write(html_escape(output_list[id]));
    d.write("\n");
    d.write("<a href='javascript:window.close()'>close</a>\n");
    d.write("</pre>\n");
    d.close();
}
*/
--></script>

<div class='heading'>
    <div class="ak-left">
        <h1>巡查任务新增查询删除报告</h1>
        <p class='attribute'><strong>Start Time:</strong> 2021-07-27 15:39:56</p>
<p class='attribute'><strong>Duration:</strong> 0:01:12.922632</p>
<p class='attribute'><strong>Status:</strong> Pass 2 Error 1</p>

        <p class='description'>用例执行情况：</p>
    </div>
    <div id="container" class="ak-left ak-bchart"></div>
</div>
<div class="ak-clear"></div>


<script>
    $(function () {
        // Radialize the colors
        Highcharts.getOptions().colors = Highcharts.map(Highcharts.getOptions().colors, function (color) {
            return {
                radialGradient: { cx: 0.5, cy: 0.3, r: 0.7 },
                stops: [
                    [0, color],
                    [1, Highcharts.Color(color).brighten(-0.3).get('rgb')] // darken
                ]
            };
        });
        // Build the chart
        $('#container').highcharts({
            legend: {
                layout: 'vertical',
                backgroundColor: '',
                align: 'right',
                verticalAlign: 'top',
                floating: true,
                labelFormatter: function () {
                return this.name +'  ('+this.num+')';
    }
            },
            chart: {
                plotBackgroundColor: null,
                plotBorderWidth: null,
                plotShadow: false
            },
            title: {
                text: ''
            },
            tooltip: {
                pointFormat: '{series.name}: <b>{point.percentage:.1f}%</b>'
            },
            plotOptions: {
                pie: {
                    allowPointSelect: true,
                    cursor: 'pointer',
                    dataLabels: {
                        enabled: true,
                        format: '<b>{point.name}</b>: {point.percentage:.1f} %',
                        style: {
                            color: (Highcharts.theme && Highcharts.theme.contrastTextColor) || 'black'
                        },
                        connectorColor: 'silver'
                        },
                    showInLegend: true
                    }
            },
            series: [{
                type: 'pie',
                name: 'Q',
                data: [
                    {
                        name: 'SUCESS',
                        y: 2/3*100,
                        num: 2,
                        color: '#5cb85c',
                    },
                    {
                        name: 'FAILED',
                        y: 0/3*100,
                        num: 0,
                        color: '#d9534f',
                        sliced: true,
                        selected: true,

                    },
                    {
                        name: 'ERROR',
                        y: 1/3*100,
                        num: 1,
                        color: '#a0a0a0',
                    },
                ]
            }]
        });
    });
function showVideo(dom){
    var videoDom = $(dom).next()[0];
    if(videoDom){
        launchFullScreen(videoDom);
        videoDom.load();
        videoDom.play();
    }
}

function launchFullScreen(element) {
  if(element.requestFullScreen) {
    element.requestFullScreen();
  } else if(element.mozRequestFullScreen) {
    element.mozRequestFullScreen();
  } else if(element.webkitRequestFullScreen) {
    element.webkitRequestFullScreen();
  }
}
</script>
<ul id='show_detail_line' class="ak-tab-title">
<li><a href='javascript:showCase(0)'>Summary</a></li>
<li><a href='javascript:showCase(1)'>Failed</a></li>
<li><a href='javascript:showCase(2)'>All</a></li>
</ul>
<table id='result_table'>
<colgroup>
<col align='left' />
<col align='right' />
<col align='right' />
<col align='right' />
<col align='right' />
<col align='right' />
</colgroup>
<tr id='header_row'>
    <td colspan='2'>Test Group/Test case</td>
    <td>Count</td>
    <td>Pass</td>
    <td>Fail</td>
    <td>Error</td>
    <td>View</td>
    <td>Screenshot</td>

</tr>

<tr class='errorClass'>
    <td>case_id</td>
    <td>TestSuite</td>
    <td>3</td>
    <td>2</td>
    <td>0</td>
    <td>1</td>
    <td><a href="javascript:showClassDetail('c1',3)">Detail</a></td>
    <td>&nbsp;</td>
</tr>

<tr id='pt1.1' class='hiddenRow'>
    <td  align='center'>pt1.1</td>
    <td class='none'><div class='testcase'>test_case3:[正常系-登录-正确的用户名和密码登录]</div></td>
    <td colspan='5' align='center'>

    <!--css div popup start-->
    <a class="popup_link" onfocus='this.blur();' href="javascript:showTestDetail('div_pt1.1')" >
        pass</a>

    <div id='div_pt1.1' class="popup_window">
        <div style='text-align: right; color:red;cursor:pointer'>
        <a onfocus='this.blur();' onclick="document.getElementById('div_pt1.1').style.display = 'none' " >
           [x]</a>
        </div>
        <pre>
        
pt1.1: [正常系-登录-正确的用户名和密码登录]
step1
打开系统
http://125.74.125.204:8000/zngz-web/login
step2
输入用户名
('xpath', '//*[@id="app"]/div/div/div/div[2]/div[2]/div[1]/input') zy
step3
输入密码
('xpath', '//*[@id="app"]/div/div/div/div[2]/div[2]/div[2]/input') tc123456
step4
点击登录
('xpath', '//*[@id="app"]/div/div/div/div[2]/div[2]/button') 
【case_3 PASS】


        </pre>
    </div>
    <!--css div popup end-->

    </td>
    <td align='center'>
    <a target="_blank" href="" title="">
     <img src="../img.png" height=30 width=30 border=0 />
    </a>
    </td>
</tr>

<tr id='pt1.2' class='hiddenRow'>
    <td  align='center'>pt1.2</td>
    <td class='none'><div class='testcase'>test_case4:[正常系-巡查管理-巡查任务-新增-新增例行巡查地块的任务]</div></td>
    <td colspan='5' align='center'>

    <!--css div popup start-->
    <a class="popup_link" onfocus='this.blur();' href="javascript:showTestDetail('div_pt1.2')" >
        pass</a>

    <div id='div_pt1.2' class="popup_window">
        <div style='text-align: right; color:red;cursor:pointer'>
        <a onfocus='this.blur();' onclick="document.getElementById('div_pt1.2').style.display = 'none' " >
           [x]</a>
        </div>
        <pre>
        
pt1.2: [正常系-巡查管理-巡查任务-新增-新增例行巡查地块的任务]
step1
等待3秒
step2
进入巡查管理模块
('xpath', '//*[@id="app"]/div/header/div[1]/span[2]') 
step3
点击新增按钮
('xpath', '//*[@id="filter"]/div[4]/div/button[2]') 
step4
输入任务名称
('xpath', '//*[@id="app"]/div/section/main/div/div[4]/div/div[2]/form/div[1]/div/div/input') 自动化调试新增任务001
step5
点击任务类型下拉框
('xpath', '//*[@id="app"]/div/section/main/div/div[4]/div/div[2]/form/div[2]/div/div/div[1]/input') 
step6
等待3秒
step7
选择任务类型
('xpath', '/html/body/div[3]/div[1]/div[1]/ul/li[1]') 
step8
输入巡查内容
('xpath', '//*[@id="app"]/div/section/main/div/div[4]/div/div[2]/form/div[3]/div/div[1]/textarea') 自动化调试新增任务001———巡查内容输入，此处测试数据一般测试特殊符号显示和字数限制等。
step9
点击关联地块/图斑下拉框
('xpath', '//*[@id="app"]/div/section/main/div/div[4]/div/div[2]/form/div[4]/div/div/div[1]/input') 
step10
等待3秒
step11
选择关联地块
('xpath', '/html/body/div[4]/div[1]/div[1]/ul/li[2]') 
step12
等待3秒
step13
点击地块数据下拉框
('xpath', '//*[@id="app"]/div/section/main/div/div[4]/div/div[2]/form/div[5]/div/div[1]/div/input') 
step14
滚动到想选的数据
('xpath', '/html/body/div[5]/div[1]/div[1]/ul/li[22]') 
gundongcheng
step15
点击元素
('xpath', '/html/body/div[5]/div[1]/div[1]/ul/li[22]') 
step16
点击确定按钮
('xpath', '//*[@id="app"]/div/section/main/div/div[4]/div/div[3]/span/button[2]') 
step17
关闭浏览器
【case_4 PASS】


        </pre>
    </div>
    <!--css div popup end-->

    </td>
    <td align='center'>
    <a target="_blank" href="" title="">
     <img src="../img.png" height=30 width=30 border=0 />
    </a>
    </td>
</tr>

<tr id='ft1.3' class='none'>
    <td  align='center'>ft1.3</td>
    <td class='errorCase'><div class='testcase'>test_case5:[正常系-巡查管理-巡查任务-删除-删除数据]</div></td>
    <td colspan='5' align='center'>

    <!--css div popup start-->
    <a class="popup_link" onfocus='this.blur();' href="javascript:showTestDetail('div_ft1.3')" >
        error</a>

    <div id='div_ft1.3' class="popup_window">
        <div style='text-align: right; color:red;cursor:pointer'>
        <a onfocus='this.blur();' onclick="document.getElementById('div_ft1.3').style.display = 'none' " >
           [x]</a>
        </div>
        <pre>
        
ft1.3: [正常系-巡查管理-巡查任务-删除-删除数据]
step1
等待3秒
step2
进入巡查管理模块
('xpath', '//*[@id="app"]/div/header/div[1]/span[2]') 
&lt;Base.Action object at 0x00000238A60372E0&gt; 页面中未能找到 ('xpath', '//*[@id="app"]/div/header/div[1]/span[2]') 元素
【case_5 ERROR】 step2: 'NoneType' object has no attribute 'click'
result/2021-07-27/image/2021-07-27-15_41_01_5.png
Traceback (most recent call last):
  File "D:\b_Auto\automagic\seleniumkeyword\TestSuite.py", line 51, in action_test
    result = Controller.action_test(*step_info[3:])
  File "D:\b_Auto\automagic\seleniumkeyword\TestSuite.py", line 208, in action_test
    return action_keyword(cls.action, args[1], cls.expand_paras(args[2]), (args[3], args[4]))
  File "D:\b_Auto\automagic\seleniumkeyword\Base.py", line 38, in _deco
    return func(*args, **kwargs)
  File "D:\b_Auto\automagic\seleniumkeyword\Base.py", line 463, in action_click
    action_object.find_element(loc).click()
AttributeError: 'NoneType' object has no attribute 'click'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "D:\e_environment\Python\Python3\lib\site-packages\urllib3\connection.py", line 159, in _new_conn
    conn = connection.create_connection(
  File "D:\e_environment\Python\Python3\lib\site-packages\urllib3\util\connection.py", line 84, in create_connection
    raise err
  File "D:\e_environment\Python\Python3\lib\site-packages\urllib3\util\connection.py", line 74, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [WinError 10061] 由于目标计算机积极拒绝，无法连接。

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "D:\e_environment\Python\Python3\lib\site-packages\urllib3\connectionpool.py", line 670, in urlopen
    httplib_response = self._make_request(
  File "D:\e_environment\Python\Python3\lib\site-packages\urllib3\connectionpool.py", line 392, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "D:\e_environment\Python\Python3\lib\http\client.py", line 1255, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "D:\e_environment\Python\Python3\lib\http\client.py", line 1301, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "D:\e_environment\Python\Python3\lib\http\client.py", line 1250, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "D:\e_environment\Python\Python3\lib\http\client.py", line 1010, in _send_output
    self.send(msg)
  File "D:\e_environment\Python\Python3\lib\http\client.py", line 950, in send
    self.connect()
  File "D:\e_environment\Python\Python3\lib\site-packages\urllib3\connection.py", line 187, in connect
    conn = self._new_conn()
  File "D:\e_environment\Python\Python3\lib\site-packages\urllib3\connection.py", line 171, in _new_conn
    raise NewConnectionError(
urllib3.exceptions.NewConnectionError: &lt;urllib3.connection.HTTPConnection object at 0x00000238A6156610&gt;: Failed to establish a new connection: [WinError 10061] 由于目标计算机积极拒绝，无法连接。

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "D:\b_Auto\automagic\seleniumkeyword\TestSuite.py", line 94, in func
    self.action_test(step_list)
  File "D:\b_Auto\automagic\seleniumkeyword\TestSuite.py", line 63, in action_test
    Controller.action.saveScreenshot(str(self.case_id))
  File "D:\b_Auto\automagic\seleniumkeyword\Base.py", line 130, in saveScreenshot
    image = self.driver.save_screenshot(self.savePngName(name))
  File "D:\e_environment\Python\Python3\lib\site-packages\selenium\webdriver\remote\webdriver.py", line 1055, in save_screenshot
    return self.get_screenshot_as_file(filename)
  File "D:\e_environment\Python\Python3\lib\site-packages\selenium\webdriver\remote\webdriver.py", line 1032, in get_screenshot_as_file
    png = self.get_screenshot_as_png()
  File "D:\e_environment\Python\Python3\lib\site-packages\selenium\webdriver\remote\webdriver.py", line 1064, in get_screenshot_as_png
    return base64.b64decode(self.get_screenshot_as_base64().encode('ascii'))
  File "D:\e_environment\Python\Python3\lib\site-packages\selenium\webdriver\remote\webdriver.py", line 1074, in get_screenshot_as_base64
    return self.execute(Command.SCREENSHOT)['value']
  File "D:\e_environment\Python\Python3\lib\site-packages\selenium\webdriver\remote\webdriver.py", line 319, in execute
    response = self.command_executor.execute(driver_command, params)
  File "D:\e_environment\Python\Python3\lib\site-packages\selenium\webdriver\remote\remote_connection.py", line 374, in execute
    return self._request(command_info[0], url, body=data)
  File "D:\e_environment\Python\Python3\lib\site-packages\selenium\webdriver\remote\remote_connection.py", line 397, in _request
    resp = self._conn.request(method, url, body=body, headers=headers)
  File "D:\e_environment\Python\Python3\lib\site-packages\urllib3\request.py", line 75, in request
    return self.request_encode_url(
  File "D:\e_environment\Python\Python3\lib\site-packages\urllib3\request.py", line 97, in request_encode_url
    return self.urlopen(method, url, **extra_kw)
  File "D:\e_environment\Python\Python3\lib\site-packages\urllib3\poolmanager.py", line 336, in urlopen
    response = conn.urlopen(method, u.request_uri, **kw)
  File "D:\e_environment\Python\Python3\lib\site-packages\urllib3\connectionpool.py", line 754, in urlopen
    return self.urlopen(
  File "D:\e_environment\Python\Python3\lib\site-packages\urllib3\connectionpool.py", line 754, in urlopen
    return self.urlopen(
  File "D:\e_environment\Python\Python3\lib\site-packages\urllib3\connectionpool.py", line 754, in urlopen
    return self.urlopen(
  File "D:\e_environment\Python\Python3\lib\site-packages\urllib3\connectionpool.py", line 726, in urlopen
    retries = retries.increment(
  File "D:\e_environment\Python\Python3\lib\site-packages\urllib3\util\retry.py", line 446, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='127.0.0.1', port=60115): Max retries exceeded with url: /session/2fa6f9b380932227327593243d3d0578/screenshot (Caused by NewConnectionError('&lt;urllib3.connection.HTTPConnection object at 0x00000238A6156610&gt;: Failed to establish a new connection: [WinError 10061] 由于目标计算机积极拒绝，无法连接。'))


        </pre>
    </div>
    <!--css div popup end-->

    </td>
    <td align='center'>
    <a target="_blank" href="image/2021-07-27-15_41_01_5.png" title="image/2021-07-27-15_41_01_5.png">
     <img src="../img.png" height=30 width=30 border=0 />
    </a>
    </td>
</tr>

<tr id='total_row'>
    <td colspan='2'>Total</td>
    <td>3</td>
    <td>2</td>
    <td>0</td>
    <td>1</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
</tr>
</table>

<div id='ending'>&nbsp;</div>

</body>
</html>
